package com.linuxgt.android.dbapp.domain;

/**
 * Created by liuteng on 2017/5/17.
 */

public class User {
    Integer id;
    String name;
    Integer age;
    Integer amount;

    public User(Integer id, String name, Integer age, Integer amount) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.amount = amount;
    }

    public User(Integer id, String name, Integer age) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.amount = 0;
    }

    public User() {
    }

    public User(String name, Integer age) {
        this.name = name;
        this.age = age;
        this.amount = 0;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", amount=" + amount +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
